<template>
  <el-dialog width="60%" title="填写发货单" :visible.sync="showDia" @close="handleClose">
    <div>
      <h3 class="title">确定用户信息</h3>
      <el-row :span="20" v-if="selectData.address">
        <el-col :span="8">
          <span>联系人: {{selectAddress.contact_name}}</span>
        </el-col>
        <el-col :span="8">
          <span>联系电话: {{selectAddress.contact_phone}}</span>
        </el-col>
        <el-col :span="8">
          <span>详细地址: {{selectAddress.address}}</span>
        </el-col>
      </el-row>
    </div>

    <!-- 物流信息 -->
    <div v-if="type == 'manual'">
      <h3 class="title">填写物流信息</h3>
      <el-input type="textarea" :rows="6" placeholder="请输入物流信息" v-model="shipData"></el-input>
      <div style="text-align:right">
        <el-button style="margin-top:30px;" type="primary" @click="handleShipClick()">发货</el-button>
      </div>
    </div>
  </el-dialog>
</template>

<script>
/* eslint-disable */
import { isNull, arr2pojo, obj2pojo, validateResponse } from "@/util/util";
import { successMsg, errorMsg } from "@/util/message"

export default {
  name: "detail",
  props: ['method'],
  components: {
  },
  computed: {
  },
  data() {
    return {
      showDia: false,
      selectData:[],
      selectAddress: [],
      shipData: [],
      type:'manual'
    }
  },
  methods: {
    handleShipClick() {

    },
    handleShow(id,type) {
      this.showDia = true
      this.type = type
      console.log(this.type)
    },
    handleClose() {
      this.showDia = false
      this.order = []
    }
  }
}

</script>